package com.mmd.admin.model.pojo.request.crm;


import com.mmd.base.annotation.valid.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("轮播图新增编辑参数")
public class CrmBannerAddOrEditParam {

    @ApiModelProperty("id")
    private Long id=0L;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "轮播图名称不能为空",groups = {ValidGroup.Update.class,ValidGroup.Insert.class})
    private String name;

    @ApiModelProperty(value = "图片资源地址")
    @NotBlank(message = "图片资源地址不能为空",groups = {ValidGroup.Update.class,ValidGroup.Insert.class})
    private String imgUrl;

    @ApiModelProperty(value = "轮播图类型")
    private Integer type;

}
